Optimal. Leaf size=90 \[ -\frac {3 a^2 \tanh ^{-1}(\cosh (c+d x))}{8 d}+\frac {b^2 \cosh (c+d x)}{d}-\frac {2 a b \coth (c+d x)}{d}+\frac {3 a^2 \coth (c+d x) \text {csch}(c+d x)}{8 d}-\frac {a^2 \coth (c+d x) \text {csch}^3(c+d x)}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 90, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3299, 3852, 8,
3853, 3855, 2718} \begin {gather*} -\frac {3 a^2 \tanh ^{-1}(\cosh (c+d x))}{8 d}-\frac {a^2 \coth (c+d x) \text {csch}^3(c+d x)}{4 d}+\frac {3 a^2 \coth (c+d x) \text {csch}(c+d x)}{8 d}-\frac {2 a b \coth (c+d x)}{d}+\frac {b^2 \cosh (c+d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2718
Rule 3299
Rule 3852
Rule 3853
Rule 3855
Rubi steps
\begin {align*} \int \text {csch}^5(c+d x) \left (a+b \sinh ^3(c+d x)\right )^2 \, dx &=i \int \left (-2 i a b \text {csch}^2(c+d x)-i a^2 \text {csch}^5(c+d x)-i b^2 \sinh (c+d x)\right ) \, dx\\ &=a^2 \int \text {csch}^5(c+d x) \, dx+(2 a b) \int \text {csch}^2(c+d x) \, dx+b^2 \int \sinh (c+d x) \, dx\\ &=\frac {b^2 \cosh (c+d x)}{d}-\frac {a^2 \coth (c+d x) \text {csch}^3(c+d x)}{4 d}-\frac {1}{4} \left (3 a^2\right ) \int \text {csch}^3(c+d x) \, dx-\frac {(2 i a b) \text {Subst}(\int 1 \, dx,x,-i \coth (c+d x))}{d}\\ &=\frac {b^2 \cosh (c+d x)}{d}-\frac {2 a b \coth (c+d x)}{d}+\frac {3 a^2 \coth (c+d x) \text {csch}(c+d x)}{8 d}-\frac {a^2 \coth (c+d x) \text {csch}^3(c+d x)}{4 d}+\frac {1}{8} \left (3 a^2\right ) \int \text {csch}(c+d x) \, dx\\ &=-\frac {3 a^2 \tanh ^{-1}(\cosh (c+d x))}{8 d}+\frac {b^2 \cosh (c+d x)}{d}-\frac {2 a b \coth (c+d x)}{d}+\frac {3 a^2 \coth (c+d x) \text {csch}(c+d x)}{8 d}-\frac {a^2 \coth (c+d x) \text {csch}^3(c+d x)}{4 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 149, normalized size = 1.66 \begin {gather*} \frac {b^2 \cosh (c) \cosh (d x)}{d}-\frac {2 a b \coth (c+d x)}{d}+\frac {3 a^2 \text {csch}^2\left (\frac {1}{2} (c+d x)\right )}{32 d}-\frac {a^2 \text {csch}^4\left (\frac {1}{2} (c+d x)\right )}{64 d}+\frac {3 a^2 \log \left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )}{8 d}+\frac {3 a^2 \text {sech}^2\left (\frac {1}{2} (c+d x)\right )}{32 d}+\frac {a^2 \text {sech}^4\left (\frac {1}{2} (c+d x)\right )}{64 d}+\frac {b^2 \sinh (c) \sinh (d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(170\) vs.
\(2(84)=168\).
time = 2.23, size = 171, normalized size = 1.90
method | result | size |
risch | \(\frac {{\mathrm e}^{d x +c} b^{2}}{2 d}+\frac {{\mathrm e}^{-d x -c} b^{2}}{2 d}+\frac {a \left (3 a \,{\mathrm e}^{7 d x +7 c}-16 b \,{\mathrm e}^{6 d x +6 c}-11 a \,{\mathrm e}^{5 d x +5 c}+48 b \,{\mathrm e}^{4 d x +4 c}-11 a \,{\mathrm e}^{3 d x +3 c}-48 b \,{\mathrm e}^{2 d x +2 c}+3 a \,{\mathrm e}^{d x +c}+16 b \right )}{4 d \left ({\mathrm e}^{2 d x +2 c}-1\right )^{4}}-\frac {3 a^{2} \ln \left ({\mathrm e}^{d x +c}+1\right )}{8 d}+\frac {3 a^{2} \ln \left ({\mathrm e}^{d x +c}-1\right )}{8 d}\) | \(171\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 188 vs.
\(2 (84) = 168\).
time = 0.27, size = 188, normalized size = 2.09 \begin {gather*} \frac {1}{2} \, b^{2} {\left (\frac {e^{\left (d x + c\right )}}{d} + \frac {e^{\left (-d x - c\right )}}{d}\right )} - \frac {1}{8} \, a^{2} {\left (\frac {3 \, \log \left (e^{\left (-d x - c\right )} + 1\right )}{d} - \frac {3 \, \log \left (e^{\left (-d x - c\right )} - 1\right )}{d} + \frac {2 \, {\left (3 \, e^{\left (-d x - c\right )} - 11 \, e^{\left (-3 \, d x - 3 \, c\right )} - 11 \, e^{\left (-5 \, d x - 5 \, c\right )} + 3 \, e^{\left (-7 \, d x - 7 \, c\right )}\right )}}{d {\left (4 \, e^{\left (-2 \, d x - 2 \, c\right )} - 6 \, e^{\left (-4 \, d x - 4 \, c\right )} + 4 \, e^{\left (-6 \, d x - 6 \, c\right )} - e^{\left (-8 \, d x - 8 \, c\right )} - 1\right )}}\right )} + \frac {4 \, a b}{d {\left (e^{\left (-2 \, d x - 2 \, c\right )} - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 2119 vs.
\(2 (84) = 168\).
time = 0.59, size = 2119, normalized size = 23.54 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 172 vs.
\(2 (84) = 168\).
time = 0.46, size = 172, normalized size = 1.91 \begin {gather*} \frac {4 \, b^{2} e^{\left (d x + c\right )} + 4 \, b^{2} e^{\left (-d x - c\right )} - 3 \, a^{2} \log \left (e^{\left (d x + c\right )} + 1\right ) + 3 \, a^{2} \log \left ({\left | e^{\left (d x + c\right )} - 1 \right |}\right ) + \frac {2 \, {\left (3 \, a^{2} e^{\left (7 \, d x + 7 \, c\right )} - 16 \, a b e^{\left (6 \, d x + 6 \, c\right )} - 11 \, a^{2} e^{\left (5 \, d x + 5 \, c\right )} + 48 \, a b e^{\left (4 \, d x + 4 \, c\right )} - 11 \, a^{2} e^{\left (3 \, d x + 3 \, c\right )} - 48 \, a b e^{\left (2 \, d x + 2 \, c\right )} + 3 \, a^{2} e^{\left (d x + c\right )} + 16 \, a b\right )}}{{\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )}^{4}}}{8 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.14, size = 355, normalized size = 3.94 \begin {gather*} \frac {\frac {3\,a^2\,{\mathrm {e}}^{c+d\,x}}{4\,d}-\frac {2\,a\,b}{d}}{{\mathrm {e}}^{2\,c+2\,d\,x}-1}-\frac {\frac {4\,a^2\,{\mathrm {e}}^{3\,c+3\,d\,x}}{d}-\frac {a\,b}{d}+\frac {3\,a\,b\,{\mathrm {e}}^{2\,c+2\,d\,x}}{d}-\frac {3\,a\,b\,{\mathrm {e}}^{4\,c+4\,d\,x}}{d}+\frac {a\,b\,{\mathrm {e}}^{6\,c+6\,d\,x}}{d}}{6\,{\mathrm {e}}^{4\,c+4\,d\,x}-4\,{\mathrm {e}}^{2\,c+2\,d\,x}-4\,{\mathrm {e}}^{6\,c+6\,d\,x}+{\mathrm {e}}^{8\,c+8\,d\,x}+1}-\frac {\frac {2\,a^2\,{\mathrm {e}}^{c+d\,x}}{d}+\frac {a\,b}{d}-\frac {2\,a\,b\,{\mathrm {e}}^{2\,c+2\,d\,x}}{d}+\frac {a\,b\,{\mathrm {e}}^{4\,c+4\,d\,x}}{d}}{3\,{\mathrm {e}}^{2\,c+2\,d\,x}-3\,{\mathrm {e}}^{4\,c+4\,d\,x}+{\mathrm {e}}^{6\,c+6\,d\,x}-1}+\frac {b^2\,{\mathrm {e}}^{c+d\,x}}{2\,d}-\frac {3\,\mathrm {atan}\left (\frac {a^2\,{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\sqrt {-d^2}}{d\,\sqrt {a^4}}\right )\,\sqrt {a^4}}{4\,\sqrt {-d^2}}+\frac {b^2\,{\mathrm {e}}^{-c-d\,x}}{2\,d}-\frac {a^2\,{\mathrm {e}}^{c+d\,x}}{2\,d\,\left ({\mathrm {e}}^{4\,c+4\,d\,x}-2\,{\mathrm {e}}^{2\,c+2\,d\,x}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________